import os
def tree(path,depth=0):
    if depth == 0:
        print(path)
    for item in os.listdir(path):
        print("|    " * depth,end="")
        print("|----",item)
        item=os.path.join(path,item)
        if os.path.isdir(item):
            tree(item, depth + 1)

tree("F:\BaiduNetdiskDownload\pythonProject")


import zhanghy
N = input("请输入你要生成激活码的数量:")
while 1:
    if N.isdigit() and int(N) > 0:
        break
    N = input("输入不合法重新输入:")

zhanghy.activation_code(N)